package com.encyclopedia.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author all
 * @since 2024-04-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("plant")
public class Plant implements Serializable {


    @TableId("id")
    private Integer id;

    @TableField("common_name")
    private String commonName;

    @TableField("scientific_name")
    private String scientificName;


    private String familyName;

    private String genusName;

    @TableField("description")
    private String description;
    //图片
    @TableField("picture")
    private String picture;

    private Breed breed;

    private GrowthCharacteristic growthCharacteristic;

    private Ecotope ecotope;


    @TableField("date_added")
    private LocalDateTime DateAdded;

    @TableField("last_updated")
    private LocalDateTime LastUpdated;


}
